package com.loveprogrammer.eternity.exception;

/**
 * @version 1.0.0
 * @description:
 * @author: eric
 * @date: 2023-01-17 18:22
 **/
public class EternityException extends RuntimeException {

    private final String code;
    private final String message;

    public EternityException(String code, Throwable cause) {
        super(cause);
        this.code = code;
        this.message = cause == null ? null : cause.getMessage();
    }

    public EternityException(String code, String message) {
        this.code = code;
        this.message = message;
    }

}
